package org.model;

/**
 * Dlb entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Dlb implements java.io.Serializable {

	private Integer id;
	private String xh;
	private String kl;

	// Constructors

	/** default constructor */
	public Dlb() {
	}

	/** minimal constructor */
	public Dlb(String kl) {
		this.kl = kl;
	}

	/** full constructor */
	public Dlb(Integer id, String xh, String kl) {
		this.id = id;
		this.xh = xh;
		this.kl = kl;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getXh() {
		return this.xh;
	}

	public void setXh(String xh) {
		this.xh = xh;
	}

	public String getKl() {
		return this.kl;
	}

	public void setKl(String kl) {
		this.kl = kl;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Dlb))
			return false;
		Dlb castOther = (Dlb) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getXh() == castOther.getXh()) || (this.getXh() != null
						&& castOther.getXh() != null && this.getXh().equals(
						castOther.getXh())))
				&& ((this.getKl() == castOther.getKl()) || (this.getKl() != null
						&& castOther.getKl() != null && this.getKl().equals(
						castOther.getKl())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result + (getXh() == null ? 0 : this.getXh().hashCode());
		result = 37 * result + (getKl() == null ? 0 : this.getKl().hashCode());
		return result;
	}

}